package cn.sinohealth;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author qinminghui
 * @description TODO
 * @date 2020/9/17
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface EsMapper {
    boolean enabled() default true;
    /**
     * the prefix of constant file name
     * the first letter will be converted to be uppercase
     *
     * @return
     */
    String value() default "";

    /**
     * the prefix of es indices name
     *
     * @return
     */
    String alias() default "";

    /**
     * the prefix of mappings file name
     */
    String mapping() default "";

    /**
     * the default normalizer name of the class, the fields which don't specify normalizer name use it as default.
     * The field could specify its  normalizer name individually in the future.
     *
     * @return
     */
    String normalizer() default "";

    boolean allKeywordUseNormalizer() default false;

}
